package com.jd.openfegin;

import com.jd.domain.Store;
import com.jd.untils.AjaxResutl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "store-server",fallbackFactory = StoreServiceFallbackFactory.class)
@RequestMapping("/store")
public interface StoreService {
    @PostMapping("/add")
    AjaxResutl add(@RequestBody Store store);
}
